package com.ushio.capsuleservice.model.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableField;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.time.LocalDateTime;

/**
 * 点赞实体类
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("tc_like")
public class Like {
    
    @TableId(type = IdType.AUTO)
    private Long id;
    
    @TableField("user_id")
    private Long userId;
    
    @TableField("target_type")
    private Integer targetType; // 1-帖子，2-回复
    
    @TableField("target_id")
    private Long targetId;
    
    @TableField("created_time")
    private LocalDateTime createdTime;
}
